package com.touringapp.android.utils;

import org.json.JSONException;
import org.json.JSONObject;

public class ResponseStatus {
    /**
    *
    */
   private static final long serialVersionUID = -805126669814854011L;
   private int resultCode;

   public static ResponseStatus fromJSONObject (JSONObject jsonObject) throws JSONException {
       ResponseStatus responseStatus = new ResponseStatus();
       responseStatus.resultCode = jsonObject.getInt("code");
       return responseStatus;
   }
   
   public int getResultCode(){
       return resultCode;
   }
}
